//
//  ZHhttpOcTools.h
//  ZHWeibo
//
//  Created by user on 15/12/6.
//  Copyright © 2015年 heima. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AFNetworking/AFNetworking.h>

typedef void (^callBackBlock)(id, NSError *);

typedef NS_ENUM(NSInteger, ZHRequestMethod){
    GET,
    POST,//最后一个可以有逗号,也可以没有逗号
};

@interface ZHhttpOcTools :AFHTTPSessionManager

//单例方法
+ (instancetype)shareInstance;

//提供一个对外访问的接口
+ (void)requestWithMethod:(ZHRequestMethod)method andWithurlString:(NSString *)urlString andWithParams:(id)param andWithBlock:(callBackBlock)callBack;

@end
